package com.xc.smart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 *   @author mtl
 *   2021/6/23
 */   
/**
    * 商品订单表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods_order")
public class GoodsOrder implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户信息
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 订单价格
     */
    @TableField(value = "order_price")
    private Long orderPrice;

    /**
     * 订单状态 0未支付 1已支付 2支付失败 3支付成功 4已取消
     */
    @TableField(value = "order_state")
    private Integer orderState;

    /**
     * 订单创建事件
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_ORDER_PRICE = "order_price";

    public static final String COL_ORDER_STATE = "order_state";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}